<?php
/**
 * Created by PhpStorm.
 * User: zhaoye
 * Date: 16/7/15
 * Time: 下午3:58
 */

namespace controller\Api;
use ZPHP\Core\Db;
use ZPHP\Core\Log;
use tool\Easemob;

class CCommon extends Base{

    public $isApi = true;

    public function init()
    {
        return parent::init();
    }
    /**
     * 获取所有城市的列表
     * @return string
     */

    public function getToken()
    {
        $easemob = new Easemob();
        $token = yield $easemob->getToken();
        return json_encode($token);
    }


}
